Optimal. Leaf size=19 \[ -\frac {\cos ^2(e+f x) \sin (e+f x)}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.048, Rules used = {4128}
\begin {gather*} -\frac {\sin (e+f x) \cos ^2(e+f x)}{f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 4128
Rubi steps
\begin {align*} \int \cos ^3(e+f x) \left (-3+2 \sec ^2(e+f x)\right ) \, dx &=-\frac {\cos ^2(e+f x) \sin (e+f x)}{f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(46\) vs. \(2(19)=38\).
time = 0.02, size = 46, normalized size = 2.42 \begin {gather*} \frac {2 \cos (f x) \sin (e)}{f}+\frac {2 \cos (e) \sin (f x)}{f}-\frac {3 \sin (e+f x)}{f}+\frac {\sin ^3(e+f x)}{f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.43, size = 32, normalized size = 1.68
method | result | size |
risch | \(-\frac {\sin \left (f x +e \right )}{4 f}-\frac {\sin \left (3 f x +3 e \right )}{4 f}\) | \(27\) |
derivativedivides | \(\frac {-\left (2+\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )+2 \sin \left (f x +e \right )}{f}\) | \(32\) |
default | \(\frac {-\left (2+\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )+2 \sin \left (f x +e \right )}{f}\) | \(32\) |
norman | \(\frac {\frac {2 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{f}-\frac {6 \left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{f}+\frac {6 \left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{f}-\frac {2 \left (\tan ^{7}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{f}}{\left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{3} \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )}\) | \(95\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 23, normalized size = 1.21 \begin {gather*} \frac {\sin \left (f x + e\right )^{3} - \sin \left (f x + e\right )}{f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.16, size = 21, normalized size = 1.11 \begin {gather*} -\frac {\cos \left (f x + e\right )^{2} \sin \left (f x + e\right )}{f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (2 \sec ^{2}{\left (e + f x \right )} - 3\right ) \cos ^{3}{\left (e + f x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.46, size = 21, normalized size = 1.11 \begin {gather*} \frac {\sin \left (f x + e\right )^{3} - \sin \left (f x + e\right )}{f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.04, size = 22, normalized size = 1.16 \begin {gather*} -\frac {\sin \left (e+f\,x\right )-{\sin \left (e+f\,x\right )}^3}{f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________